package com.point_of_sale.product_loader;

import java.util.HashMap;

import com.point_of_sale.product.Product;

// I made this an interface because then we can seamlessly plug in loaders for XML, CSV, or even databases.
// Due to time constraints, only a plain text formatter was written
public interface ProductLoader 
{
	// I'm using a HashMap because for the product's map, we need random access and it will be faster to have random access
	// with the Product code as its key instead of an index whose value isn't really meaningful to us
	public HashMap<String, Product> getProducts(String location);
}
